<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <title>信息收集列表</title>
    <!--cdn连接-->
    <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
    <!-- layui js -->
    <script src="https://www.layuicdn.com/layui/layui.js"></script>
    <!--jquery-->
    <script src="./jquery/jquery-3.3.1.js"></script>
    <!-- css -->
    <link rel="stylesheet" type="text/css" href="css/statusList.css">
    <!-- js -->
    <script src="./js/statusList.js"></script>
</head>
<body class="layui-layout-body">
<div class="container">
    <!--搜索框-->
    <div class="layui-form" style="margin-top: 60px;">
        <div class="layui-form-item forward-search">
            <button class="layui-btn" type="button" lay-submit lay-filter="formDemo" id="key"><i class="layui-icon layui-icon-search"></i>
            </button>
            <div class="layui-input-inline">
                <input type="text" name="keyword" id="keyword" required
                       lay-verify="text"
                       placeholder="请输入学号"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <!--新增表单-->
    <div class="statusform">
        <div id="statusInfo"></div>
    </div>

    <!--数据模板-->
    <script type="text/html" id="statusData">
        <div class="layui-form">
            {{#  if(d.status === 1){ }}
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend style="font-size: 22px;color: #009688">{{ d.dataInfo }}</legend>
            </fieldset>
            {{#  }else{ }}
                {{# if(d.activists.length === 0){ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>暂无积极分子信息收集</legend>
                </fieldset>
                {{# }else{ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>积极分子信息收集</legend>
                </fieldset>
                    {{#  layui.each(d.activists, function(index, item){ }}
                        <div class="layui-bg-gray" style="padding: 30px;">
                            <div class="layui-row layui-col-space15">
                                <div class="layui-col-md12">
                                    <div class="layui-card">
                                        <div class="layui-card-header">截止收集时间：{{ item.initiateTime }}</div>
                                        <div class="layui-card-body">
                                            {{ item.sj001 }}
                                            <div class="layui-btn-container">
                                                <button type="button" class="layui-btn layui-btn-xs" onclick="thisInfo('{{ item.sta_id }}','{{ item.tb_id }}')">点击填写</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    {{# }) }}
                {{# } }}

                {{# if(d.devobjects.length === 0){ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>暂无发展对象信息收集</legend>
                </fieldset>
                {{# }else{ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>发展对象信息收集</legend>
                </fieldset>
                    {{#  layui.each(d.devobjects, function(index, item){ }}
                        <div class="layui-bg-gray" style="padding: 30px;">
                            <div class="layui-row layui-col-space15">
                                <div class="layui-col-md12">
                                    <div class="layui-card">
                                        <div class="layui-card-header">截止收集时间：{{ item.initiateTime }}</div>
                                        <div class="layui-card-body">
                                            {{ item.sj001 }}
                                            <div class="layui-btn-container">
                                                <button type="button" class="layui-btn layui-btn-xs" onclick="thisInfo('{{ item.sta_id }}','{{ item.tb_id }}')">点击填写</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    {{# }) }}
                {{# } }}

                {{# if(d.propartymembers.length === 0){ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>暂无预备党员信息收集</legend>
                </fieldset>
                {{# }else{ }}
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>预备党员信息收集</legend>
                </fieldset>
                    {{#  layui.each(d.propartymembers, function(index, item){ }}
                        <div class="layui-bg-gray" style="padding: 30px;">
                            <div class="layui-row layui-col-space15">
                                <div class="layui-col-md12">
                                    <div class="layui-card">
                                        <div class="layui-card-header">截止收集时间：{{ item.initiateTime }}</div>
                                        <div class="layui-card-body">
                                            {{ item.sj001 }}
                                            <div class="layui-btn-container">
                                                <button type="button" class="layui-btn layui-btn-xs" onclick="thisInfo('{{ item.sta_id }}','{{ item.tb_id }}')">点击填写</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    {{# }) }}
                {{# } }}
            {{# } }}
        </div>
    </script>
</div>
</body>
</html>